package com.zzy.system.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zzy.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * 功能描述:
 *
 * @author zhouzhiyong
 * @date 2024/07/20 20:09
 */
@Data
public class DetectReportSpus  extends BaseEntity {
    //主键 自增
    @TableId(type = IdType.AUTO)
    private Integer detectReportPicturesId;
    /**
     * 明细的唯一标识
     */
    @JSONField(name = "id")
    private String id;

    /**
     * 商品的spuId
     */
    @JSONField(name = "spu_id")
    private String spuId;

    /**
     * 对应的检测报告Id
     */
    @JSONField(name = "report_id")
    private String reportId;

    /**
     * 商品的检测时间
     */
    @JSONField(name = "detect_date")
    private String detectDate;

    /**
     * 商品的名称
     */
    @JSONField(name = "name")
    private String name;

    /**
     * 商品的一级分类名称
     */
    @JSONField(name = "category1_name")
    private String category1Name;

    /**
     * 商品的二级分类名称
     */
    @JSONField(name = "category2_name")
    private String category2Name;
    @JSONField(name = "batches")
    @TableField(exist = false)
    private List<DetectReportSpusBatch> detectReportSpusBatchs;
}
